package ru.spbu.math.android.cbrf.model;

/**
 * Model for keeping constant data
 * @author  Svetlana Zemlyanskaya
 */

public class StockItem {

    /**
	 * @uml.property  name="id"
	 */
    private String id; // needed for keeping data in database
    /**
	 * @uml.property  name="code"
	 */
    private String code; //USD
    /**
	 * @uml.property  name="name"
	 */
    private String name; //US Dollar
    /**
	 * @uml.property  name="nominalValue"
	 */
    private int nominalValue; //1 or 100
    private String nominalName;//USD for US Dollar or barrel for Oil

    public StockItem() {
        id = "";
        code = "";
        name = "";
        nominalValue = 0;
        nominalName = "";
    }

    public StockItem(String id, String code, String name, int nominalValue, String nominalName) {
        this.id = id;
        this.code = code;
        this.name = name;
        this.nominalValue = nominalValue;
        this.nominalName = nominalName;
    }

    /**
	 * @return
	 * @uml.property  name="id"
	 */
    public String getId() {
        return id;
    }

    /**
	 * @return
	 * @uml.property  name="code"
	 */
    public String getCode() {
        return code;
    }

    /**
	 * @return
	 * @uml.property  name="name"
	 */
    public String getName() {
        return name;
    }

    /**
	 * @return
	 * @uml.property  name="nominalValue"
	 */
    public int getNominalValue() {
        return nominalValue;
    }

    public String getnominalName() {
        return nominalName;
    }

    /**
	 * @param codeString
	 * @uml.property  name="code"
	 */
    public void setCode(String codeString) {
        code = codeString;
    }

    /**
	 * @param nameString
	 * @uml.property  name="name"
	 */
    public void setName(String nameString) {
        name = nameString;
    }

    /**
	 * @param nominalString
	 * @uml.property  name="nominalValue"
	 */
    public void setNominalValue(int nominalString) {
        nominalValue = nominalString;
    }

    /**
	 * @param nominalString
	 * @uml.property  name="nominalName"
	 */
    public void setNominalName(String nominalString) {
        nominalName = nominalString;
    }

    /**
	 * @param idString
	 * @uml.property  name="id"
	 */
    public void setId(String idString) {
        id = idString;
    }

    public String toString() {
        return code;
    }

}
